package com.lmwyc.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.lmwyc.bean.AreaDo;

@Mapper
public interface AreaMapper {
	/**
	 * 保存所有预定的打卡地点
	 * 
	 * @param areas
	 * @return
	 */
	public int save(List<AreaDo> areas);

	/**
	 * 清空所有预定地点
	 * 
	 * @return
	 */
	public int truncate();

	/**
	 * 查询预定地点
	 * 
	 * @param id
	 * @param onwershipPlace
	 * @param office
	 * @return
	 */
	public List<AreaDo> list(@Param("id") Integer id, @Param("onwershipPlace") String onwershipPlace,
			@Param("office") String office);
}
